#include <iostream>
#include <string>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
string add(string s1,char m)
{
	int a,i,j,k;
	a=s1.length();
	string s2;
	for(i=0,j=-2;i<a;i++)
	{
		j=j+2;
		s2[j]=s1[i];
		cout<<s2[j];
		s2[j+1]=m;
		cout<<s2[j+1];
	}
	return s2;
}
int main(int argc, char** argv) {
	string s1,s2;
	char m;
	cin>>s1>>m;
	s2=add(s1,m);
	cout<<s2<<endl;
	return 0;
}
